class A(object):
    def __init__(self,name,age):
        self.name = name
        self.age = age

    def demo(self):
        pass
    def demo01(self):
        pass

class B(A):
    def __init__(self,name,age,sex):
        super().__init__(name,age)
        self.sex = sex
    def demo02(self):
        pass

b = B("zs",20,"man")
print(b.name)
print(b.age)
print(b.sex)